]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Display dialogs on the primary monitor when no window has focus.
authorAdam Dingle <adam@yorba.org>
Thu, 21 Apr 2011 13:59:26 +0000 (06:59 -0700)
committerAdel Gadllah <adel.gadllah@gmail.com>
Tue, 26 Apr 2011 19:09:41 +0000 (21:09 +0200)
Before this change, we displayed dialogs on the monitor containing the
focused window if there was any, otherwise on monitor 0.  We now use
the primary monitor rather than monitor 0 when no window has focus.

https://bugzilla.gnome.org/show_bug.cgi?id=648305

src/shell-global.c

index 29caaa9cfd90e50a0e45ce2f341b1bcab79c8578..b646c616349e7184ec9ea1f73826cd2178010088 100644 (file)
@@ -1517,8 +1517,7 @@ shell_global_get_focus_monitor (ShellGlobal  *global)
         }
     }
 
-  meta_screen_get_monitor_geometry (screen, 0, &rect);
-  return meta_rectangle_copy (&rect);
+  return shell_global_get_primary_monitor (global);
 }
 
 /**